<?php
/**
 * Copyright (c) 2006, PORTALIER Julien
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @package      FeatherPHP
 * @subpackage   Librairies
 * @copyright    Copyright (c) 2006, Julien PORTALIER
 * @link         http://feather.portalier.com
 * @license      http://www.opensource.org/licenses/mit-license.php The MIT License
 */

function isPost()
{
	return (env('REQUEST_METHOD') === 'POST');
}

function isGet()
{
	return (env('REQUEST_METHOD') === 'GET');
}

function isAjax()
{
	return (env('HTTP_X_REQUESTED_WITH') === 'XMLHttpRequest');
}

function getReferer($i=0)
{
	return env('HTTP_REFERER');
}
?>